package router

import (
	"fx_swift_agent/internal/controller"
	"fx_swift_agent/pkg/middleware"
)

func AgentRouter() {
	userApiVer := miniApiVer.Group("agent", middleware.CheckAuth(), middleware.AgentFreezeStatus())
	{
		userApiVer.GET("queryAgentApply", controller.QueryAgentApply)
		userApiVer.GET("operatorAgentCallBack", controller.OperatorAgentCallBack)
		userApiVer.GET("agentCallBackInfo", controller.AgentCallBackInfo)

		userApiVer.POST("uploadEnterpriseInfo", controller.UploadEnterpriseInfo)
		userApiVer.POST("submitDiscountOrder", controller.SubmitDiscountOrder)
		userApiVer.POST("cashFlowList", controller.CashFlowList)
		userApiVer.POST("exportCashFlow", controller.ExportCashFlow)
	}
}
